package hjd.game.config;

import hjd.game.gameserver.Server;
import hjd.game.model.Player;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author hujiangdi
 * @date 29/8/2023
 */
@Configuration
public class GlobalDataConfig {
    @Bean
    public ConcurrentHashMap<String, Server> playerPool() {
        return new ConcurrentHashMap<>(100);
    }

    @Bean
    public ConcurrentHashMap<String, Player> playerInfo() {
        return new ConcurrentHashMap<>(100);
    }
}
